<?php
use Managers\Auto,
    Managers\Search,
    Managers\Ad;
/**
 * Controller description
 * @since   7 мая 2010
 * @author diotheos
 */
class BrandController extends Zend_Controller_Action
{
    /**
     * @var Zend_Cache_Core
     */
    private $_cache;


    public function init()
    {
        $this->_helper->layout()->setLayout('index-layout');
    }
    public function indexAction(){
        $catalog = new Managers\Catalog();
        $res=$catalog->getList();

       $this->view->all_items =$res;


       }


    public function viewAction(){
        $this->_helper->layout()->setLayout('index-layout');
    }

    public function editAction(){
                $this->view->test = 'edit';
    }

    public function showAction () {
        $br=$this->_getParam("brand");
        $db=new Managers\Catalog();
        $ret=$db->getBrands($br);

        $this->view->test=$ret;




    }
    }
